Skip to content

Fix JavaScript screenshot coverage for shared UI changes - #5361

Merged
shai-almog merged 1 commit into
masterfrom
fix-javascript-screenshot-goldens
Jul 11, 2026
Merged

Fix JavaScript screenshot coverage for shared UI changes#5361
shai-almog merged 1 commit into
masterfrom
fix-javascript-screenshot-goldens

Conversation

@shai-almog

Copy link
Copy Markdown
Collaborator

Summary

  • refresh the 15 JavaScript screenshot goldens affected by the multiline TextArea vertical-alignment correction
  • run the JavaScript screenshot workflow when shared CodenameOne/src/** runtime files change
  • exclude Markdown-only shared runtime changes from that trigger

Root cause

Commit 78eb3a7148 changed shared TextArea rendering and refreshed the iOS/macOS goldens, but the JavaScript workflow did not run because its path filters omitted CodenameOne/src/**. A later HelloCodenameOne change triggered the workflow and exposed the 15 stale JavaScript references on master.

Impact

The JavaScript screenshot suite now accepts the intentional rendering change, and future shared runtime/UI changes will exercise the JavaScript screenshot gate on both pull requests and master pushes.

Validation

  • confirmed the master and PR failure artifacts are byte-identical for all 15 mismatches
  • ran the repository JavaScript screenshot comparator against all 135 screenshots from the failing master artifact: 135 matched, 0 missing
  • parsed .github/workflows/scripts-javascript.yml successfully with Ruby YAML
  • git diff --check

@github-actions

Copy link
Copy Markdown
Contributor

✅ Continuous Quality Report

Test & Coverage

Static Analysis

  • SpotBugs [Report archive]
    • ByteCodeTranslator: 0 findings (no issues)
    • android: 0 findings (no issues)
    • codenameone-maven-plugin: 0 findings (no issues)
    • core-unittests: 0 findings (no issues)
    • ios: 0 findings (no issues)
  • PMD: 0 findings (no issues) [Report archive]
  • Checkstyle: 0 findings (no issues) [Report archive]

Generated automatically by the PR CI workflow.

@shai-almog

shai-almog commented Jul 11, 2026

Copy link
Copy Markdown
Collaborator Author

Compared 135 screenshots: 135 matched.
✅ JavaScript-port screenshot tests passed.

@shai-almog
shai-almog merged commit c7729dd into master Jul 11, 2026
13 checks passed
@shai-almog
shai-almog deleted the fix-javascript-screenshot-goldens branch July 11, 2026 13:51
shai-almog added a commit that referenced this pull request Jul 11, 2026
…ty-suite

Conflicts resolved by keeping the branch side:
- scripts/cn1playground/pom.xml: keep the deliberate 8.0-SNAPSHOT pin
  (master's 7.0.258 release bump must not touch the playground pin).
- 14 scripts/javascript goldens: master's #5361 regenerated them on a
  tree without this branch's theme changes; ours were captured from the
  merged tree post-#5358 and remain correct for this PR.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant